package com.oj.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "用户信息")
public class User implements Serializable {


    @ApiModelProperty(value = "序列化版本ID")
    private static  final  long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户名",example = "guan")
    private String userName;

    @ApiModelProperty(value = "密码",example = "12321")
    private String password;

    @ApiModelProperty(value = "用户ID",example = "2")
    private Long id;

    @ApiModelProperty(value ="头像URL",example = "http://example/avatar.jpg")
    private String avatar;

    @ApiModelProperty(value = "用户手机号",example = "155232313567")
    private String phone;

}
